import type { IModalConfig } from '@/components/types'

export const modalConfig: IModalConfig = {
  category: 'system',
  pageName: 'menu',
  header: {
    newTitle: '新增菜单',
    editTitle: '编辑菜单'
  },
  propItems: [
    {
      type: 'input',
      label: '菜单名称',
      prop: 'name',
      placeholder: '请输入菜单名称'
    },
    {
      type: 'radio',
      label: '菜单类型',
      prop: 'type',
      options: [
        {
          label: '1级菜单',
          value: 1
        },
        {
          label: '2级菜单',
          value: 2
        },
        {
          label: '3级菜单',
          value: 3
        }
      ]
    },
    {
      type: 'input',
      prop: 'url',
      label: '菜单url',
      placeholder: '请输入菜单url'
    },
    {
      type: 'input',
      prop: 'icon',
      label: '菜单图标',
      placeholder: '请输入菜单图标'
    },
    {
      type: 'input',
      prop: 'permission',
      label: '按钮权限',
      placeholder: '请输入按钮权限'
    },
    {
      type: 'select',
      prop: 'parentId',
      label: '上级菜单',
      options: []
    }
  ]
}
